﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace DELVE_GAME.ViewStructure
{
    abstract class ViewComposite : ViewComponent
    {
        protected List<ViewComponent> components;

        public ViewComposite()
        {
            this.components = new List<ViewComponent>();
        }

        public virtual void add(ViewComponent component)
        {
            components.Add(component);
        }

        public virtual void remove(int index)
        {
            components.RemoveAt(index);
        }
    }
}
